package com.game.league.mine.set;

import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;

import com.game.base.app.base.BaseActivity;
import com.game.league.R;
import com.game.league.databinding.ActivityAboutBinding;
import com.game.league.mine.set.adapter.AboutAdapter;
import com.game.league.service.InterfaceMgr;

import java.util.ArrayList;

/**
 * Created by Su on 2019/6/13.
 */
public class AboutActivity extends BaseActivity<ActivityAboutBinding> implements View.OnClickListener {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_about;
    }

    @Override
    protected void initView() {
        binding.setTitle("关于");
        binding.setClick(this);

        binding.recyclerList.setLayoutManager(new LinearLayoutManager(this));
        AboutAdapter aboutAdapter = new AboutAdapter();
        binding.recyclerList.setAdapter(aboutAdapter);
        aboutAdapter.setItems((ArrayList<String>) InterfaceMgr.getConfig().getTextAbout());
    }

    @Override
    protected void initData() {
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.title_left_iv:
                finish();
                break;
        }
    }
}
